package collection;

public class recusive1 {

    public static int jc(int n){
        if(n <=1){
            return n;
        }
        return n*jc(n-1);
    }

    public static int fb(int n){
        if(n== 1 || n == 2){
            return 1;
        };
        return fb(n-1)+ fb(n-2);
    }

    public recusive1(){
        System.out.println("constructor");
    }


    {
        System.out.println("exec block ");
    }

    static {
        System.out.println("exec static");
    }

    public static void main(String[] args) {
        new recusive1();
        new recusive1();
//        int r1 = jc(4);
//        System.out.println(r1);
//
//        System.out.println(fb(8));

    }
}
